package com.xquant.trade.account.service;

import com.github.pagehelper.PageInfo;
import com.xquant.trade.account.entity.Counterparty;

import java.util.List;
import java.util.Map;

/**
 * @Author yunnuo.yang
 * @Date 2020/10/16 11:21
 * @Description
 **/

public interface CounterpartyService {
    String BEAN_NAME = "counterpartyService";

    PageInfo<Counterparty> queryCounterpartyByPage(Map<String, Object> param);

    PageInfo<Counterparty> queryCounterpartyCombox(Map<String, Object> param);

    List<Counterparty> queryCounterparty(Map<String, Object> param);

    List<Counterparty> queryByPartyId(Map<String, Object> param);

    void insertCounterparty(Counterparty cp);

    void updateCounterparty(Counterparty cp);

    void updateCounterpartyStatus(Counterparty cp);

    void deleteCounterparty(Counterparty cp);

    List queryCounterpartyTrade(Counterparty cp);

    boolean checkPartyName(Counterparty cp);

    Counterparty queryByPartyName(Counterparty cp);
}

